-- GENERATED SPELL FOR [Dragonmaw Peon] --


function spell0_22252(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(34802,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22252', 6337, 1)
end

function spell1_22252(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(15572,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22252', 30331, 1)
end

function Sorts_22252(pUnit, Event)
local choix_sorts_22252 = math.random(0, 1)
if choix_sorts_22252 == 0 then
pUnit:RegisterEvent('spell0_22252', 1, 1)
end
if choix_sorts_22252 == 1 then
pUnit:RegisterEvent('spell1_22252', 1, 1)
end
end

function mob22252_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22252', math.random(1500, 3000), 1)
end

function mob22252_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22252_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22252_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22252, 1, 'mob22252_Action')
RegisterUnitEvent(22252, 2, 'mob22252_Leave')
RegisterUnitEvent(22252, 3, 'mob22252_Kill')
RegisterUnitEvent(22252, 4, 'mob22252_Die')
